﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DepartmentScore.ascx.cs" Inherits="DepartmentScore" %>
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="ObjectDataSource_Dpt"
    Height="50px" Width="171px" onitemupdating="DetailsView1_ItemUpdating">
    <Fields>
        <asp:BoundField DataField="Id" HeaderText="编号" ReadOnly="True" ApplyFormatInEditMode="True" />
        <asp:BoundField DataField="Name" HeaderText="名称" ReadOnly="True" ApplyFormatInEditMode="True" />
        <asp:BoundField DataField="Score" HeaderText="自评分" ApplyFormatInEditMode="True" />
        <asp:CommandField ShowEditButton="True" />
    </Fields>
</asp:DetailsView>
&nbsp;<asp:ObjectDataSource ID="ObjectDataSource_Dpt" runat="server" DataObjectTypeName="DepartmentDetail"
    SelectMethod="GetDepartmentsById" TypeName="DepartmentDb" UpdateMethod="UpdateDepartmentScoreBySN">
    <SelectParameters>
        <asp:Parameter Name="DepartmentNum" />
    </SelectParameters>
</asp:ObjectDataSource>
